package com.contract.spirit.ui.exchange.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.contract.spirit.R
import com.contract.spirit.bean.response.MainPageResponse
import com.contract.spirit.databinding.AdapterExchangeBindItemBinding

/**
 * @author: witness
 * created: 2021/9/26
 * desc:
 */
class ExchangeBindListAdapter :
    BaseQuickAdapter<MainPageResponse.ExchangePollInfo, BaseDataBindingHolder<AdapterExchangeBindItemBinding>>(
        R.layout.adapter_exchange_bind_item,
        ArrayList()
    ) {
    override fun convert(
        holder: BaseDataBindingHolder<AdapterExchangeBindItemBinding>,
        item: MainPageResponse.ExchangePollInfo
    ) {
        val dataBinding = holder.dataBinding;
        dataBinding?.let {
            it.item = item
        }
    }
}